<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s"  uri="/struts-tags"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'AddBills.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <s:if test="BillTypelist==null">
      <c:redirect url="AddTypeBillsAction.action"></c:redirect>
  </s:if>
   <form action="AddBillsAction.action" method="post">
       <table>
         <tr>
           <td>类型：</td>
           <s:iterator value="BillTypelist" id="BillType">
                   <td>
                       <s:property value="name"/><input type="radio" name="type" value="<s:property value="id"/>" />
                   </td> 
           </s:iterator>
         </tr>
         <tr>
            <td>
                                                     标题<input type="text" maxlength="25" name="title">
            </td>
            
         </tr>
         <tr>
            <td>日期<input name="bengintime"></td>
            <td>金额<input name="price"></td>
         </tr>
         
        <tr>
           <td>说明<input name="explain"></td>
        </tr>
        
        <tr>
              <td><input type="reset" value="重置"></td>
              <td><input type="submit" value="保存"></td>
              <td><a href="BillsList.jsp"><input type="button" value="返回"></a></td>
              
        </tr>
       </table>
   </form>
  </body>
</html>
